/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.PhieuHuHai_DAO;
import DTO.PhieuHuHai_DTO;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Lenh Ho Xung
 */
public class PhieuHuHai_BUS {
    public static DefaultTableModel layDanhSach() throws Exception{
        return PhieuHuHai_DAO.layDanhSach();
    }
    public static void Insert(PhieuHuHai_DTO p) throws Exception{
        PhieuHuHai_DAO.Insert(p);
    }
    public static void Delete(String maPhieu) throws Exception{
        PhieuHuHai_DAO.Delete(maPhieu);
    }
    public static void Update(PhieuHuHai_DTO p) throws Exception{
        PhieuHuHai_DAO.Update(p);
    }
    public static String laymaMax() throws Exception{
        return PhieuHuHai_DAO.laymaMax();
    }
    public static float layTriGiaTheoMaKhach(String maKhach) throws Exception{
        return PhieuHuHai_DAO.layTriGiaTheoMaKhach(maKhach);
    }
}
